// 文章列表mock数据
const mockArticles = {
  // 推荐文章列表
  recommend: [
    {
      articleId: 1,
      title: '【RabbitWQ】基于Java实现轻量级消息队列（二）',
      subtitle: '考虑到项目的轻便性，元数据规模适中，读多写少，关系模型简单，所以这里使用的数据库是SQLite',
      coverUrl: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=400&q=80',
      authorId: 1,
	  authorName: '娄野奇',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '1.2k',
      likeCount: '128',
      favoriteCount: '45',
      likeFlg: false,
      favoriteFlg: false
    },
    {
      articleId: 2,
      title: 'Vue3 + Vite 项目性能优化实践',
      subtitle: '从代码分割、懒加载、缓存策略等多个方面，分享Vue3项目的性能优化经验',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  authorId: 1,
      authorName: '前端老张',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '3.5k',
      likeCount: '320',
      favoriteCount: '156',
      likeFlg: true,
      favoriteFlg: false
    },
    {
      articleId: 3,
      title: '从零构建一个完整的微服务架构',
      subtitle: '详细讲解微服务架构的设计原则、服务拆分策略、通信方式和部署方案',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      authorId: 1,
      authorName: '架构师小王',
      avatarUrl: '',
      readCount: '5.8k',
      likeCount: '678',
      favoriteCount: '234',
      likeFlg: false,
      favoriteFlg: true
    },
    {
      articleId: 4,
      title: 'Python数据分析实战：电商用户行为分析',
      subtitle: '使用Pandas、Matplotlib和Seaborn对电商用户行为数据进行深入分析和可视化',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  authorId: 1,
      authorName: '数据分析师小李',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '4.2k',
      likeCount: '456',
      favoriteCount: '189',
      likeFlg: false,
      favoriteFlg: false
    },
    {
      articleId: 5,
      title: 'React Hooks 原理与源码解析',
      subtitle: '深入理解React Hooks的工作原理，从源码角度剖析useState、useEffect等核心Hook',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      authorId: 1,
	  authorName: '前端专家阿强',
      avatarUrl: '',
      readCount: '2.9k',
      likeCount: '345',
      favoriteCount: '123',
      likeFlg: true,
      favoriteFlg: true
    },
	{
	  articleId: 6,
	  title: 'TypeScript 5.0新特性详解',
	  subtitle: 'TypeScript 5.0带来的装饰器、const类型参数等新特性全面解析',
	  coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  authorName: '前端老张',
	  avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  readCount: '1.8k',
	  likeCount: '234',
	  favoriteCount: '89',
	  likeFlg: false,
	  favoriteFlg: false
	},
	{
	  articleId: 7,
	  title: 'Kubernetes集群部署与管理实战',
	  subtitle: '从零开始部署Kubernetes集群，并学习日常运维和监控管理方法',
	  coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  authorName: '架构师小王',
	  avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  readCount: '3.1k',
	  likeCount: '456',
	  favoriteCount: '156',
	  likeFlg: true,
	  favoriteFlg: false
	},
	{
	  articleId: 8,
	  title: '2023年前端技术发展趋势预测',
	  subtitle: '分析当前前端技术生态，预测2023年可能流行的新技术和发展方向',
	  coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  authorName: '技术观察家',
	  avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  readCount: '6.5k',
	  likeCount: '890',
	  favoriteCount: '345',
	  likeFlg: false,
	  favoriteFlg: true
	},
	{
	  articleId: 9,
	  title: '人工智能在软件开发中的应用现状',
	  subtitle: '探讨AI辅助编程、代码生成、自动化测试等方面的最新进展',
	  coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  authorName: 'AI研究员',
	  avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  readCount: '4.8k',
	  likeCount: '567',
	  favoriteCount: '234',
	  likeFlg: true,
	  favoriteFlg: true
	},
	{
	  articleId: 10,
	  title: 'ChatGPT辅助编程完全指南',
	  subtitle: '如何有效利用ChatGPT提高编程效率，解决实际开发问题',
	  coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  authorName: 'AI应用专家',
	  avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  readCount: '12.3k',
	  likeCount: '2345',
	  favoriteCount: '890',
	  likeFlg: false,
	  favoriteFlg: false
	},
	{
	  articleId: 11,
	  title: '从零学习Go语言：入门到实战',
	  subtitle: 'Go语言的基础语法、并发模型、标准库以及实战项目解析',
	  coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  authorName: '后端工程师阿明',
	  avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  readCount: '9.7k',
	  likeCount: '1,876',
	  favoriteCount: '765',
	  likeFlg: true,
	  favoriteFlg: false
	},
	{
	  articleId: 12,
	  title: '计算机专业大学生如何规划学习路径',
	  subtitle: '给计算机专业新生的学习建议和路线图，帮助快速入门',
	  coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  authorName: '资深讲师',
	  avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  readCount: '7.2k',
	  likeCount: '1,234',
	  favoriteCount: '567',
	  likeFlg: false,
	  favoriteFlg: true
	},
	{
	  articleId: 13,
	  title: '程序员面试高频算法题解析',
	  subtitle: '总结各大厂面试中常见的算法题，提供解题思路和代码实现',
	  coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  authorName: '算法教练',
	  avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  readCount: '8.9k',
	  likeCount: '1,678',
	  favoriteCount: '789',
	  likeFlg: true,
	  favoriteFlg: true
	},
	{
	  articleId: 14,
	  title: '数据结构与算法基础：从入门到精通',
	  subtitle: '系统讲解数据结构与算法的基础知识，包含大量实例和练习',
	  coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  authorName: '算法专家',
	  avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  readCount: '5.6k',
	  likeCount: '987',
	  favoriteCount: '456',
	  likeFlg: false,
	  favoriteFlg: false
	},
	{
	  articleId: 15,
	  title: '设计模式实战：23种设计模式详解',
	  subtitle: '通过实际案例讲解23种设计模式的应用场景和实现方式',
	  coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  authorName: '架构设计专家',
	  avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
	  readCount: '4.3k',
	  likeCount: '765',
	  favoriteCount: '345',
	  likeFlg: true,
	  favoriteFlg: false
	}
  ],
  
  // 关注文章列表
  follow: [
    {
      articleId: 16,
      title: 'TypeScript 5.0新特性详解',
      subtitle: 'TypeScript 5.0带来的装饰器、const类型参数等新特性全面解析',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      authorName: '前端老张',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '1.8k',
      likeCount: '234',
      favoriteCount: '89',
      likeFlg: false,
      favoriteFlg: false
    },
    {
      articleId: 17,
      title: 'Kubernetes集群部署与管理实战',
      subtitle: '从零开始部署Kubernetes集群，并学习日常运维和监控管理方法',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      authorName: '架构师小王',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '3.1k',
      likeCount: '456',
      favoriteCount: '156',
      likeFlg: true,
      favoriteFlg: false
    }
  ],
  
  // 资讯文章列表
  info: [
    {
      articleId: 18,
      title: '2023年前端技术发展趋势预测',
      subtitle: '分析当前前端技术生态，预测2023年可能流行的新技术和发展方向',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      authorName: '技术观察家',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '6.5k',
      likeCount: '890',
      favoriteCount: '345',
      likeFlg: false,
      favoriteFlg: true
    },
    {
      articleId: 19,
      title: '人工智能在软件开发中的应用现状',
      subtitle: '探讨AI辅助编程、代码生成、自动化测试等方面的最新进展',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      authorName: 'AI研究员',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '4.8k',
      likeCount: '567',
      favoriteCount: '234',
      likeFlg: true,
      favoriteFlg: true
    }
  ],
  
  // 热榜文章列表
  hot: [
    {
      articleId: 20,
      title: 'ChatGPT辅助编程完全指南',
      subtitle: '如何有效利用ChatGPT提高编程效率，解决实际开发问题',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      authorName: 'AI应用专家',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '12.3k',
      likeCount: '2345',
      favoriteCount: '890',
      likeFlg: false,
      favoriteFlg: false
    },
    {
      articleId: 21,
      title: '从零学习Go语言：入门到实战',
      subtitle: 'Go语言的基础语法、并发模型、标准库以及实战项目解析',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      authorName: '后端工程师阿明',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '9.7k',
      likeCount: '1,876',
      favoriteCount: '765',
      likeFlg: true,
      favoriteFlg: false
    }
  ],
  
  // 大学生专区文章列表
  student: [
    {
      articleId: 22,
      title: '计算机专业大学生如何规划学习路径',
      subtitle: '给计算机专业新生的学习建议和路线图，帮助快速入门',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      authorName: '资深讲师',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '7.2k',
      likeCount: '1,234',
      favoriteCount: '567',
      likeFlg: false,
      favoriteFlg: true
    },
    {
      articleId: 23,
      title: '程序员面试高频算法题解析',
      subtitle: '总结各大厂面试中常见的算法题，提供解题思路和代码实现',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      authorName: '算法教练',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '8.9k',
      likeCount: '1,678',
      favoriteCount: '789',
      likeFlg: true,
      favoriteFlg: true
    }
  ],
  
  // 学习文章列表
  learn: [
    {
      articleId: 24,
      title: '数据结构与算法基础：从入门到精通',
      subtitle: '系统讲解数据结构与算法的基础知识，包含大量实例和练习',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      authorName: '算法专家',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '5.6k',
      likeCount: '987',
      favoriteCount: '456',
      likeFlg: false,
      favoriteFlg: false
    },
    {
      articleId: 25,
      title: '设计模式实战：23种设计模式详解',
      subtitle: '通过实际案例讲解23种设计模式的应用场景和实现方式',
      coverUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      authorName: '架构设计专家',
      avatarUrl: 'https://zxs-lyblog.oss-cn-hangzhou.aliyuncs.com/user-header/user_header.png',
      readCount: '4.3k',
      likeCount: '765',
      favoriteCount: '345',
      likeFlg: true,
      favoriteFlg: false
    }
  ]
};

// 模拟分页获取文章列表
export const getArticles = (type = 'recommend', page = 1, limit = 10) => {
  const articles = mockArticles[type] || mockArticles.recommend;
  const start = (page - 1) * limit;
  const end = start + limit;
  const paginatedArticles = articles.slice(start, end);
  
  return {
    code: 0,
    message: 'success',
    page: {
      list: paginatedArticles,
      current: page,
      size: limit,
      totalCount: articles.length,
      totalPage: Math.ceil(articles.length / limit)
    }
  };
};

export default mockArticles;